home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / xml4j.jar / com / ibm / xml / dom / EntityImpl.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-08-30  |  1.2 KB  |  76 lines

  1. package com.ibm.xml.dom;
  2.  
  3. import org.w3c.dom.DOMException;
  4. import org.w3c.dom.Entity;
  5.  
  6. public class EntityImpl extends NodeImpl implements Entity {
  7.    static final long serialVersionUID = -3575760943444303423L;
  8.    protected String publicId;
  9.    protected String systemId;
  10.    protected String notationName;
  11.  
  12.    public EntityImpl(DocumentImpl var1, String var2) {
  13.       super(var1, var2, (String)null);
  14.    }
  15.  
  16.    public short getNodeType() {
  17.       return 6;
  18.    }
  19.  
  20.    public String getNodeValue() {
  21.       return null;
  22.    }
  23.  
  24.    public void setNodeValue(String var1) throws DOMException {
  25.       throw new DOMExceptionImpl((short)7, (String)null);
  26.    }
  27.  
  28.    public String getPublicId() {
  29.       if (super.syncData) {
  30.          ((NodeImpl)this).synchronizeData();
  31.       }
  32.  
  33.       return this.publicId;
  34.    }
  35.  
  36.    public String getSystemId() {
  37.       if (super.syncData) {
  38.          ((NodeImpl)this).synchronizeData();
  39.       }
  40.  
  41.       return this.systemId;
  42.    }
  43.  
  44.    public String getNotationName() {
  45.       if (super.syncData) {
  46.          ((NodeImpl)this).synchronizeData();
  47.       }
  48.  
  49.       return this.notationName;
  50.    }
  51.  
  52.    public void setPublicId(String var1) {
  53.       if (super.syncData) {
  54.          ((NodeImpl)this).synchronizeData();
  55.       }
  56.  
  57.       this.publicId = var1;
  58.    }
  59.  
  60.    public void setSystemId(String var1) {
  61.       if (super.syncData) {
  62.          ((NodeImpl)this).synchronizeData();
  63.       }
  64.  
  65.       this.systemId = var1;
  66.    }
  67.  
  68.    public void setNotationName(String var1) {
  69.       if (super.syncData) {
  70.          ((NodeImpl)this).synchronizeData();
  71.       }
  72.  
  73.       this.notationName = var1;
  74.    }
  75. }
  76.